<!DOCTYPE html>
<html>
<head>
  <title></title>
  <script src="../resources/jquery.js"></script>
  <link rel="stylesheet" href="css/login.css">
</head>
<body>
<?php
/**
 * Created by PhpStorm.
 * User: Aliaxander Lazerka
 * Date: 10/26/14
 * Time: 8:08 AM
 */

include_once("LoginErrorMessages.php");
include_once("Login.php");
if(Login::isLoggedIn()){
  header("Location:?main");
}
?>

<div class="loginDiv">
  <form method="post" action="?lH" id="loginForm">
    Вход<br>
    Логин: <input type="text" name="usrName" style="margin-left: 14px">
    Пароль: <input type="password" name="pass" style="margin-left: 5px">
    <input type="submit" value="Войти">
    <input type="hidden"  name="url" value="?login">
    <input type="button" value="Забыли пароль" onclick="location.href='?fP'">
  </form>
</div>
<?php
include_once("infoPage.php");
?>
</body>